package com.bailian.spring.ioc.basic_dl.dl_name;

import com.bailian.spring.ioc.basic_dl.dl_name.bean.Person;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author gaoxu
 * date: Created on 2021/10/28 下午4:17
 */
public class QuickstartByNameApplication {

    public static void main(String[] args) throws Exception {
        BeanFactory beanFactory = new ClassPathXmlApplicationContext("basic_dl/quickstart-byname.xml");
        Person person = (Person) beanFactory.getBean("person");
        System.out.println(person);
    }
}
